<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>分配角色权限</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../static/layui/css/layui.css"
	media="all">
<link rel="stylesheet" href="../static/css/util.css">
<script type="text/javascript" src="../static/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../static/js/sys/resource/roleandresource.js"></script>
<script type="text/html" id="toolbarDemo">
  	<div class="layui-btn-container">
    	<button class="layui-btn layui-btn-sm" lay-event="updateUserModal">分配角色</button>
   		<button class="layui-btn layui-btn-sm" lay-event="updateUserModal">分配权限</button>
 	</div>
</script>

	<script type="text/html" id="checkboxTpl">
    		<input type="checkbox" value="{{d.userId}}" lay-skin="switch" lay-text="可用|禁用" {{d.useable=='1'?'checked':''}} lay-filter="userStatus"/>
	</script>
<script src="../static/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
<!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
	<table class="layui-hide" id="test" lay-filter="test"></table>
	<!-- 添加模态框 -->
	<div class="definedModal" id="editForm">
		<form class="layui-form" id="editUserForm" lay-filter="editUserForm">
			<div class="layui-form-item">
				<label class="layui-form-label">用户名</label>
				<div class="layui-input-inline">
					<input type="hidden" name="userId" lay-verify="userId">
					<input type="text" name="userName" 
						lay-verify="userName" placeholder="请输入用户名" autocomplete="off"
						class="layui-input" >
				</div>
				<div class="layui-form-mid layui-word-aux"> </div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">性别</label>
				<div class="layui-input-block">
					<input type="radio" name="gender" value="M" title="男"> 
					<input type="radio" name="gender" value="W" title="女" checked>
				</div>
			</div>
		
			 <div class="layui-form-item">
				<label class="layui-form-label">是否可用</label>
				<div class="layui-input-block">
					<input type="radio" name="useable" value="1" title="可用"> 
					<input type="radio" name="useable" value="0" title="禁用" checked>
				</div>
			</div>
			
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button type="submit" class="layui-btn" lay-submit=""
						lay-filter="userBtn">立即提交</button>
					<button type="button" class="layui-btn modalClose">关闭</button>
				</div>
			</div>
		</form>
	</div>
</body>
</html>